<?php /* Smarty version Smarty-3.1.16, created on 2017-05-10 14:49:31
         compiled from "E:\blog\App\Home\View\Public\header.html" */ ?>
<?php /*%%SmartyHeaderCode:2391459127e0534ee62-63304612%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2d5959cbd31ca75b9c0aed56368baaa3bede1eea' => 
    array (
      0 => 'E:\\blog\\App\\Home\\View\\Public\\header.html',
      1 => 1494398913,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2391459127e0534ee62-63304612',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.16',
  'unifunc' => 'content_59127e05359030_41629900',
  'variables' => 
  array (
    'firstCate' => 0,
    'row' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_59127e05359030_41629900')) {function content_59127e05359030_41629900($_smarty_tpl) {?><header>
    <h1>猿屎森林</h1>
    <h2>一个目前只能做这种烂博客的程序猿</h2>
    <div class="logo"><a href="/"></a></div>
    <nav id="topnav"><a href="/">首页</a>
    <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['firstCate']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value) {
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
    <a href="index.php?p=Home&c=Article&a=index&cate_id=<?php echo $_smarty_tpl->tpl_vars['row']->value['cate_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['row']->value['cate_name'];?>
</a>
    <?php } ?>
    <a href="index.php?p=Home&c=SinglePage&a=index&page_id=1">关于我</a>
    <?php if ((($tmp = @$_SESSION['userInfo']['user_id'])===null||$tmp==='' ? 0 : $tmp)>0) {?>
    <a href="/" style="font-size: 14px;margin-left:100px;padding: 0 ">欢迎您,<?php echo $_SESSION['userInfo']['user_name'];?>
&nbsp;|</a><a href="index.php?p=Home&c=User&a=logout" style="font-size: 14px;padding: 0">&nbsp;退出</a>
    <?php } else { ?>
    <a href="index.php?p=Home&c=User&a=login" style="font-size: 14px;margin-left:100px;padding: 0 ">登录&nbsp;|</a><a href="index.php?p=Home&c=User&a=register" style="font-size: 14px;padding: 0">&nbsp;注册</a>
    <?php }?>
    </nav>
  </header><?php }} ?>
